from fastapi import APIRouter

router = APIRouter()

@router.get('/')
def read_root():
    return {'Hello': 'World'}


@router.get("/hello")
def read_root():
    return {"Hello": "World"}


@router.post("/data")
def receive_data(data: dict):
    return {"received_data": data}